<?php


namespace App\Utils\Logic\lak;

use App\Models\lak\FindHouse;
use App\Utils\Lib\Redis;
class FindHouseLogic
{
     public static function findHouse($data){
         $find_house =FindHouse::FindCreate($data);
         $find_id = $find_house['id'];
         $find_house = json_encode($find_house,JSON_UNESCAPED_UNICODE);
         $redis = Redis::createRedisObject();
         $redis->select(15);
         $key = 'find_house:'.$find_id;
         $redis->set($key, $find_house);
         $redis->persist($key);
         return $find_house;
     }

}
